const http = uni.$u.http
function getConfig(config) {
    return {
        ...config,
        header: {
            Accept: 'application/json'
        }
    }
}
// post请求，获取菜单
export default {
    bannerList: (data, config = {}) => http.get('/banner/list'),
    register: (data, config = {}) => http.post('/user', data),
    login: (data, config = {}) => http.post('/user/login', data),
    getLayersList: (config = {}) => http.get('/user/list?type=1'),
    getLayers: (id,config = {}) => http.get('/user/' + id),
    addComment: (data, config = {}) => http.post('/comment', data),
    getCommentList: (data, config = {}) => http.get('/comment/list', data),
    getPracticeList: (config = {}) => http.get('/practice/list'),
    getPractice: (id,config = {}) => http.get('/practice/' + id),
    getLegalHubDetail: (id,config = {}) => http.get('/legalHubDetail/' + id),
    getLegalHubList: (code,config = {}) => http.get('/legalHubDetail/list?code=' + code),
    getFunList: (config = {}) => http.get('/practice/list'),
    getFun: (id,config = {}) => http.get('/practice/' + id),
    addChat: (data, config = {}) => http.post('/chat', data),
    getChatList: (data, config = {}) => http.get('/chat/list', data),
}
